<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>投票列表</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<body>
<jsp:include page="top.jsp" />
<div id="vote" class="wrap">
	<h2>投票列表</h2>
	<ul class="list">
	
	<s:iterator var="subject" value="#session.subjects" status="status">
		<li  <s:if test="#status.isOdd()">class="odd" </s:if>>
			<h4>				
				<a href="Vote!view.action?entityId=<s:property value='#subject.vsId'/>"><s:property value="#subject.vsTitle"/></a>
			</h4>
			<div class="join"><a href="showVote.action?vsId=<s:property value='#subject.vsId'/>">我要参与</a></div>
			<p class="info">共有 <s:property value="#subject.voteOptions.size"/> 个选项，已有
			 <s:property value="#session.votes[vsId]"/> 个网友参与了投票。</p>
		</li>
	</s:iterator>
	</ul>
</div>
<div id="footer" class="wrap">
	北大青鸟 &copy; 版权所有
</div>
</body>
</html>
